<?xml version="1.0" encoding="utf-8" ?>
<%@ page import = "java.io.*" %>
<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="../conn.jsp"%>
<%
response.setContentType("text/xml;charset=utf-8");
response.setHeader("Cache-Control", "no-cache");
%><root><![CDATA[
<ol>
	<li>属性: 公开, 您的简历可以被全部企业用户查看</li>
	<li>属性: 隐藏, 企业用户不可以查看您的简历详情</li>
</ol>
<div class="topic_list">
	<table cellpadding="0" cellspacing="0">
		<thead>
			<tr>
				<td>属性</td>
				<td>学历</td>
				<td>教育时间</td>
				<td>毕业学校</td>
				<td>管理选项</td>
			</tr>
		</thead>
<%
String id = "0";//id = request.getParameter("id");

String sql = "SELECT id, syear, smonth, eyear, emonth, edu_prop, edu_bg, school, tschool2 FROM education WHERE member_id = " + id;

ResultSet rs = stmt.executeQuery(sql);
int i = 0;

while(rs.next())
{
	String school = rs.getString("school");

	if(school.length() < 1)
	{
		school = rs.getString("tschool2");
	}
%>
	<tr class="bg<%=++i%2 %>">
	<td><img src="./images/personal/property_<%=rs.getBoolean("edu_prop") ? "y" : "n"%>.gif">
	<td><%=rs.getString("edu_bg") %></td>	
	<td>从 <%=rs.getString("syear") + "-" + rs.getString("smonth") %> 到 <%=rs.getString("eyear") + "-" + rs.getString("emonth") %></td>	
	<td><%=school %></td>
	<td>
		<a href="#" onclick="resumeducation('','','<%=rs.getInt(1)%>');return false;">修改</a> | 
		<a href="#" onclick="if (confirm('您是否确定要删除该条教育经历\t')){resumeducation('','','','<%=rs.getInt(1)%>');return false;}else{return false;}">删除</a>
	</td>
<% } %>

		</tr>
		</table>
</div>
<table cellpadding="0" cellspacing="0" class="formtable">
	<tr>
		<th width="100">&nbsp;</th>
		<td>
			<input type="button" name="create" value="添加教育经历" onclick="resumeducation('',true)" class="submit" />
			<input type="button" name="nextstep" value="跳到下一步" onclick="resumeload('award')" class="button" />
		</td>
	</tr>
</table>
<div id="resumextentform"></div>
]]></root>